<?php
namespace Home\Model;
use Think\Model;
Class CountryModel //extends Model
{
    /**
     * 查询单条数据
     * @param $condition
     * @return mixed
     */
    public function get_user_one_info($condition)
    {
        return M("section_user")->where($condition)->find();
    }


    /**
     * 查询商品
     * @param $condition
     * @return mixed
     */
    public function get_goods_info($condition)
    {
        return M("section_goods")->where($condition)->select();
    }

    /**
     * 添加单条数据
     * @return \Model|Model
     */
    public function add_user_info($res)
    {
        return M("section_goods")->add($res);
    }


}


?>